<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->resource('customers', CustomerController::class);
    $router->resource('roomtypes', RoomTypeController::class);
    $router->resource('rooms', RoomController::class);
    $router->resource('orders', OrderController::class);
    $router->resource('bookings', BookingController::class);

    $router->get('check_in', 'OrderController@check_in')->name('admin.check_in');
    $router->get('check_out', 'BookingController@check_out')->name('admin.check_out');
    $router->get('/', 'HomeController@index')->name('admin.home');
});
